package com.example.campuslink.ui.fragment

import com.example.campuslink.BR
import com.example.campuslink.R
import com.example.campuslink.databinding.FragmentWordsBinding
import com.example.campuslink.viewModel.WordsViewModel

class WordsFragment : BaseFragment<FragmentWordsBinding, WordsViewModel>(
    WordsViewModel::class.java,
    R.layout.fragment_words,
    BR.viewModel
) {
    override fun onClick() {
        mViewDataBinding?.layoutInput?.setOnClickListener({
            mViewModel?.jumpToWordActivity(mViewDataBinding?.editPrep?.text.toString() ?: "")
        })
        mViewDataBinding?.layoutTuYa?.setOnClickListener({
            mViewModel?.jumpToTuYaActivity()
        })
    }

    override fun initViews() {

    }

    override fun initData() {

    }
}